package com.sun.mapper;


import com.sun.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentMapper {
    /*
    新增
     */
    int add(@Param("student") Student student);

    /*
    删除
     */
    int delete(@Param("id") int id);

    /*
    修改
     */
    int update(@Param("student") Student student);

    /*
    查询
     */
    Student select(@Param("id") int id);
}
